package com.ruoyi.biz.attchment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.biz.attchment.domain.BizAttachment;
import com.ruoyi.common.enums.AttachementType;

import java.util.List;

/**
 * 附件Service接口
 *
 * @author Fei.Cong
 * @date 2023-03-28
 */
public interface IBizAttachmentService extends IService<BizAttachment> {

    /**
     * 分页查询附件
     *
     * @param page
     * @param bizAttachment 附件
     */
    IPage<BizAttachment> pageList(BizAttachment bizAttachment, IPage<BizAttachment> page);

    /**
     * @param bizAttachmentList
     * @param applyId
     * @param createBy
     */
    void batchAdd(List<BizAttachment> bizAttachmentList, Long applyId, String createBy, AttachementType type);

}
